x86: fix delta calculation in TSC deadline timer emulation
authorDavid Vrabel <david.vrabel@citrix.com>
Wed, 11 Apr 2012 15:49:45 +0000 (16:49 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 11 Apr 2012 15:49:45 +0000 (16:49 +0100)
commit7d4928ae1f8490507deb59e2e430d96c974a70a2
tree32bed570c62252f77fe6d21e6f6f501fb81fd4d6
parent37136d68c45604a7d8e51513cbd00c2a99321716
x86: fix delta calculation in TSC deadline timer emulation

In the virtual LAPIC, correct the delta calculation when emulating the
TSC deadline timer.

Without this fix, XenServer (which is based on Xen 4.1) does not work
when running as an HVM guest.  dom0 fails to boot because its timer
interrupts are very delayed (by several minutes in some cases).

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/vlapic.c